<#if feedbackItems??>
	<#assign feedbacks = feedbackItems.items>
	<#list feedbacks as fb>
		<div class="feedback-block">
			<div class="feedback-block-info">
				<span class="feedback-block-user">${(fb.nick)?html}</span>
				<span class="feedback-block-time">${(fb.created)?datetime}</span>
				<span class="feedback-block-time">${fb.email}</span>
				<a href="javascript:;" class="reply" fid="${fb.id}">Reply</a> | 
				<#if fb.status == 0>
				<a href="javascript:;" class="delete" fid="${fb.id}">Delete</a>
				<#else>
				<span>Already Deleted</span>
				<a href="javascript:;" class="undelete" fid="${fb.id}">(Undelete)</a>
				</#if>
			</div>
			<div class="feedback-block-content">${(fb.content)?html}</div>
			
			<#assign replies = fb.replies>
			<#list replies as re>
				<div class="fb-reply">
				<#if re.id??>
  					<span class="top_fr"></span>
  					<div class="reply_name">
  						<strong>${re.author}</strong> <span>${re.created?datetime}</span> 
  						<input type="hidden" value="${re.id}" class="reId"  name="reId"  />
  						<a class="del_reply" href="javascript:;" reid="${re.id}"> 删除  </a>
  					</div>
  					<p>${re.content}</p>
				</#if>
  				</div>
			</#list>
			<div class="addReplyDiv"></div>
		</div>
	</#list>
	
	<div class="hr"></div>
	<div class="pageing">
		<#include "/macro/new_pager.ftl">		
		<#assign preUrl = contextPath + "/admin/feedback/list?page={page}">
		<#assign page = feedbackItems.pageNo>	
		<#assign pageCount = feedbackItems.pageCount>
		<@pager preUrl page pageCount />		
	</div>	
<#else>
<p>no feedback.</p>
</#if>